   <%@ page language="java" pageEncoding="UTF-8"
	errorPage="/ui/defaultException.jsp"%>
<%@include file="/ui/tags.jsp"%>
<%@ page import="com.suoluo.zenadmin.controllers.portal.account.LoginManager" %>
<%
	boolean logined = LoginManager.getInstance().isLogined(session);
	pageContext.setAttribute("logined",logined);
	if (logined){
		pageContext.setAttribute("loginUser",LoginManager.getInstance().getLoginInfo(session));
	}
%>
  <div id="header" class="header">
  			<div class="header-inner">
            <div class="logo">
                <a href="${cpath}/">
                    <img src="${cpath}/resources/portal/img/main/logo.png" height="58" width="173" alt="奢华旅行度假指南，境外旅行攻略，精选奢华酒店-禅境旅行 "/></a>
            </div>
            <div class="nav">
                <ul>
                    <li class="${renderView == 1 ? 'cur' : '' }"><a href="${cpath}/">首页</a></li>
                    <li class="${renderView == 2 ? 'cur' : '' }"><a href="${cpath}/classify">风格偏好</a></li>
                    <li class="${renderView == 3 ? 'cur' : '' }"><a href="${cpath}/destination">目的地探索</a></li>
                    <li class="${renderView == 4 ? 'cur' : '' }"><a href="${cpath}/hotel">酒店精选</a></li>
                </ul>
            </div>
           <c:if test="${!logined }">
            	<div class="user-nav">
                    <div class="user-login">
                        <a href="${cpath}/account/login">登录  </a>
                    </div>
                    <div class="user-nav-sqr">
                        |
                    </div>
                    <div class="user-reg">
                        <a href="${cpath}/account/login">注册</a>
                    </div>
                </div>
             </c:if>
           	<c:if test="${logined }">
            	 <div class="user-nav">
                    <div class="user-nav-show">
                        <span class="user-photo">
                        	<img src="${loginUser.accountHead }" height="28" width="28" />
                        </span>
                            <span class="user-name">${loginUser.accountName }</span>
                        <div class="user-nav-menu">
                            <div>
                                <a href="${cpath }/account/logout">退出</a></div>
                        </div>
                    </div>
                </div>
            </c:if>
            </div>
        </div>